projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225306a
)
entry: get_layout_location coords are already content relative
author
Timm Bäder
<mail@baedert.org>
Thu, 15 Jun 2017 08:28:58 +0000
(10:28 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:14 +0000
(21:27 -0400)
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index a8fa3dd1f412532fb9f6cdd267611e4d02b14cdd..13e63d0b091eba6c25d46b5dcfa77a5fa5eb838c 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-7689,15
+7689,7
@@
gtk_entry_get_layout_offsets (GtkEntry *entry,
gtk_widget_get_allocation (GTK_WIDGET (entry), &allocation);
gtk_entry_get_text_allocation (entry, &text_allocation);
- /* this gets coords relative to text area */
get_layout_position (entry, x, y);
-
- /* convert to widget coords */
- if (x)
- *x += text_allocation.x - allocation.x;
-
- if (y)
- *y += text_allocation.y - allocation.y;
}